package com.mobile.ado.util.ringtone;

import android.content.Context;

import com.mobile.ado.setting.ringtone.TimeSpanRingtone;

public class RingtoneScheduleWorker implements Runnable {

	private Context context;
	private TimeSpanRingtone ringtone;

	public RingtoneScheduleWorker(Context context, TimeSpanRingtone ringtone) {
		this.context = context;
		this.ringtone = ringtone;
	}

	@Override
	public void run() {

		String audioPath = null;

		if (ringtone != null) {
			audioPath = ringtone.getAudioPath();
		}

		RingtoneUtils.setRingtone(context, audioPath);
	}

}
